package br.com.skytef.beans.WEB;

import java.sql.SQLException;
import java.util.List;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

import br.com.skytef.dao.GerenciamentoDao;
import br.com.skytef.dao.ProductDao;
import br.com.skytef.entity.GridGerenEntity;

@ManagedBean(name = "GridComandaBean")
@ViewScoped
public class GridComandaBean {
	
	private GridGerenEntity grid;
	private List<GridGerenEntity> listaGrid;
	private List<GridGerenEntity> gridFiltro;

	public GridGerenEntity getGrid() {return grid;}
	public void setGrid(GridGerenEntity grid) {this.grid = grid;}
	
	public List<GridGerenEntity> getListaGrid() {return listaGrid;}
	public void setListaGrid(List<GridGerenEntity> listaGrid) {this.listaGrid = listaGrid;}
	
	public GridComandaBean() throws Exception {
		super();
		listaGrid = new GerenciamentoDao().selectDadosGrid();
	}
	public List<GridGerenEntity> getGridFiltro() {
		return gridFiltro;
	}
	public void setGridFiltro(List<GridGerenEntity> gridFiltro) {
		this.gridFiltro = gridFiltro;
	}
	
	

//	public void searchPedido(int id) throws SQLException {
//        grid = new GerenciamentoDao().getPedidoById(id);
//	}
//	
//	public void mostraNaTela() throws Exception {
//        int id = grid.getIdpedido();
//        searchPedido(id);
//	}
		
	
	
	
}
